// components/cardentry/cardentry.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    cover: {
      type: String,
      value: ''
    },
    title: {
      type: String,
      value: ''
    },
    contentUrl: {
      type: String,
      value: ''
    },
    isHeading: {
      type: Boolean,
      value: false
    }
  },

  /**
   * 组件的初始数据
   */
  data: {

  },

  /**
   * 组件的方法列表
   */
  methods: {
    onTap: function () {
      wx.navigateTo({
        url: `../../pages/article/article?url=${encodeURIComponent(this.data.contentUrl)}`,
      });
    }
  }
})
